<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="renderer" content="webkit|ie-comp|ie-stand">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta http-equiv="Cache-Control" content="no-siteapp" />
<script type="text/javascript" src="<%=basePath%>js/jquery-1.9.0.min.js"></script>
<script type="text/javascript" src="<%=basePath%>js/xadmin.js"></script>
<link rel="stylesheet" href="<%=basePath%>css/font.css">
<link rel="stylesheet" href="<%=basePath%>css/xadmin.css">
<script src="<%=basePath%>lib/layui/layui.js" charset="utf-8"></script>
<link rel="stylesheet" href="<%=basePath%>lib/layui/css/layui.css"
	media="all">
</head>
<body class="layui-anim layui-anim-up">


	<div class="x-nav">
		<span class="layui-breadcrumb"> <a id="aCalss">在线客服</a> <a>
				<cite>添加导航元素</cite>
		</a>
		</span> <a class="layui-btn layui-btn-small"
			style="line-height: 1.6em; margin-top: 3px; float: right"
			onclick="location.reload()" title="刷新"> <i
			class="layui-icon layui-icon-refresh" style="line-height: 35px;"></i></a>
	</div>

	<div class="layui-container">
		<div class="layui-row" style="margin-top: 25px">
			<div class="layui-col-md9">

				<form class="layui-form" method="post">

					<div class="layui-form-item">
						<label class="layui-form-label">开户账户</label>
						<div class="layui-input-block">
							<input type="text" name="bankAccount" value="${bankAccount}" required lay-verify="required|number"
								placeholder="请输入开户账户" maxlength="20" autocomplete="off" class="layui-input">
						</div>
					</div>
					
					<div class="layui-form-item">
						<label class="layui-form-label">开户银行</label>
						<div class="layui-input-block">
							<input type="text" name="openBankName" value="${openBankName}" required lay-verify="required"
								placeholder="请输入开户银行" maxlength="8" autocomplete="off" class="layui-input">
						</div>
					</div>
					
					<div class="layui-form-item">
						<label class="layui-form-label">开户姓名</label>
						<div class="layui-input-block">
							<input type="text" name="bankName" maxlength="5" required value="${bankName}" lay-verify="required"
								placeholder="请输入开户姓名" autocomplete="off" class="layui-input">
						</div>
					</div>
					
					<div class="layui-form-item">
						<label class="layui-form-label">开户地址</label>
						<div class="layui-input-block">
							<input type="text" name="bankAddress" value="${bankAddress}" required lay-verify="required"
								placeholder="请输入开户地址" autocomplete="off" class="layui-input">
						</div>
					</div>
					<div class="layui-form-item">
						<div class="layui-input-block">
							<button class="layui-btn" lay-submit
								lay-filter="formDemo">立即提交</button>
						</div>
					</div>
				</form>
			</div>
		</div>
	</div>
</body>
<script type="text/javascript">

layui.use(['form','jquery','layer'], function(){
	
	var form = layui.form;
	var $ = layui.jquery;
	var layer =  layui.layer;
	
	form.on('submit(formDemo)', function(data) {
	    //表格重载
	    $.post("/tszs/system/saveBusinessBankInfo.do",data.field,function(res){
	    	layer.msg(res.msg);
	    	setTimeout(function(){
	    		location.reload();
	    	},1000)
	    	
	    })
	    return false; //阻止表单跳转。如果需要表单跳转，去掉这段即可。
	});
	
})

</script>

</html>